<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <link rel="stylesheet" href="__PUBLIC__/admin/css/style.css">
    <link rel="icon" href="__PUBLIC__/admin/src/imgs/icon.jpg" type="img/x-ico" />
</head>
<body>
    <div class="login login-bg">
        <form class="form-signin" action="{:U('Agent/Login/login')}" method="post">
            <div class="login-con">
                <div class="login-logo">
                    <img src="__PUBLIC__/admin/src/imgs/logo3.png"/ id="logo" style="max-width:240px">
                </div>
                <div class="login-form">
                    <div class="form-box">
                        <div class="form-item">
                            <span class="user-icon"></span>
                            <input type="text" placeholder="输入用户名" name="username">
                        </div>
                    </div>
                    <div class="form-box">
                        <div class="form-item">
                            <span class="password-icon"></span>
                            <input type="password" placeholder="输入密码" name="password">
                        </div>
                    </div>
                    <div class="form-box">
                        <div class="form-item vercode">
                            <span class="password-icon"></span>
                            <input type="text" placeholder="输入验证码" name="verify">
                            <!-- <img src="__PUBLIC__/admin/src/imgs/vercode.png" class="vercode-img"/> -->
                            <img src="{:U('Login/verify')}" id="verify_img" style="float: left;width:184px;height: 60px;" class="vercode-img" />
                        </div>
                    </div>
                    <!-- <div class="remember">
    					<img src="__PUBLIC__/admin/src/imgs/btn_choice_moren.png" class="remember_check">
    					<span>记住我</span>
                    </div> -->
                    <div class="login-box">
                        <button type="submit">登录</button>
                    </div>
                <!-- <div class="remember-pas"><a href="javascript:;">忘记密码？</a></div> -->
                </div>   
            </div>
        </form>
        <div class="copy">
            <p>版权所有&copy邦伲德网络技术有限公司2019 保留一切权利 苏ICP备17040376号</p>
        </div>
    </div>
    <script src="__PUBLIC__/admin/vendor/jquery/jquery.min.js"></script>
    <!-- <script>
        var check=false
        $('.remember').on('click',function(){
            if(!check){
                $(this).find('.remember_check').attr('src','__PUBLIC__/admin/src/imgs/icon_choice.png')
                check=true
            }else{
                $(this).find('.remember_check').attr('src','__PUBLIC__/admin/src/imgs/btn_choice_moren.png')
                check=false
            }
        })
    </script> -->
    <script type="text/javascript">
        $(document).ready(function () {
            var logo = '{$logo}';
            if(logo.length > 0){
                $('#logo').attr('src',logo);
            }
        });
        $("#verify_img").click(function() {
            var verifyURL = "/Agent/Login/verify";
            var time = new Date().getTime();
            $("#verify_img").attr({
               "src" : verifyURL + "/" + time
            });
        });
</script>
</body>
</html>